from django.urls import path

from web.views import account, home, visualization, upfile, baike, bl, yy
from web.views.chatbot import chatbot

urlpatterns = [

    path("register/", account.register, name='register'),
    path("sms/code/", account.send_sms, name='send_sms'),
    path('login/sms/', account.login_sms, name='login_sms'),
    path('login/', account.login, name='login'),
    path('image/code', account.image_code, name='image_code'),
    path('index/', home.index, name='index'),
    path('logout/', account.logout, name='logout'),

    path('visualization/graph', visualization.get_graph, name='get_graph'),
    path('chatbot/page', chatbot.get_content, name='get_content'),

    path('upfile/', upfile.upload_file, name='upload_file'),

    path('baike/', baike.get_baike, name='get_baike'),
    path('bingli/', bl.get_bingli, name='get_bingli'),
    path('yuyin/', yy.get_yuyin, name='get_yuyin'),
]
